# -*- coding: utf-8 -*-
"""
@Time : 2023/6/11 19:20
@Author : Gremore
@File : __init__.py
@Des: 
"""

from fastapi import APIRouter
from typing import List
from tsim.commons.responses.response_model import ResponseDto, ListResponseDto
from tsim.routers.plan import plan_api
from tsim.routers.plan import calendar_api





router = APIRouter()

router.add_api_route("/create",
                     plan_api.plan_create,
                     methods=["post"],
                     name="计划添加",
                     description="计划添加",
                     response_model=ResponseDto)

router.add_api_route("/list",
                     plan_api.plan_list,
                     methods=["get"],
                     name="计划列表",
                     description="计划列表",
                     response_model=ResponseDto)


router.include_router(plan_api.plan_router)
router.include_router(calendar_api.calendar_router)